﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;

namespace Colover.UX.WebControls
{
    public class UXPage : Page
    {
        public virtual string PageClass
        {
            get
            {
                Type type = GetType().BaseType;
                string name = type.Name;
                string fullName = type.FullName;
                string nspace = type.Namespace;
                if (name == fullName)
                {
                    return name;
                }
                else
                {
                    string n = fullName.Remove(fullName.LastIndexOf('.'));
                    return n.Substring(n.LastIndexOf('.') + 1);
                }
            }
        }
    }
}
